package cn.xiongxf.feign;

import cn.xiongxf.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignClientFallbackFactory.class)
public interface MediaFeignClient {

    /**
     * 根据课程ID查询视频文件
     */
    @RequestMapping(value = "/mediaFile/getMediaFile/{courseId}",method = RequestMethod.GET)
    JsonResult selectByCourseId(@PathVariable("courseId")Long courseId);
}
